<?php
if ($rec) {
    ?>
    <div class="aui-content-padded">
        <ul class="aui-list aui-media-list">
            <li class="aui-list-header">推荐内容</li>
            <?php
            foreach ($rec as $v) {
                ?>
                <a target="_blank" href="<?php echo site_url('home/v/' . $v['id']) ?>"
                   title="<?php echo $v['title']; ?>" class="aui-list-item aui-list-item-arrow">
                    <div class="aui-media-list-item-inner">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-text">
                                <div class="aui-list-item-title aui-ellipsis-1"><?php echo $v['title']; ?></div>
                                <div class="aui-list-item-right"><?php echo date('m-d', $v['ctime']); ?></div>
                            </div>
                            <div class="aui-list-item-text aui-ellipsis-2">
                                <?php echo sub_html($v['content'], 100); ?>
                            </div>
                        </div>
                    </div>
                </a>
                <?php
            }
            ?>
        </ul>
    </div>
    <?php
}
?>
<div class="aui-content-padded">
    <ul class="aui-list">
        <li class="aui-list-header">点击最多内容</li>
        <?php
        foreach ($dj as $v) {
            ?>
            <a target="_blank" title="<?php echo $v['title'];?>" href="<?php echo site_url('home/v/'.$v['id'])?>" class="aui-list-item aui-arrow-right">
                <div class="aui-list-item-inner">
                    <?php echo $v['title'];?>
                </div>
            </a>
            <?php
        }
        ?>
    </ul>
</div>